/*
 * Copyright (c) Hisilicon Technologies Co., Ltd. 2023-2023. All rights reserved.
 * Description: Header file of imx477_coms
 * Author: Hisilicon multimedia software group
 * Create: 2023-03-06
 */

#ifndef IMX477_CONFIG_H
#define IMX477_CONFIG_H

#include "hi_media_type.h"

typedef struct cis_cfg {
    hi_u16 address;
    hi_u8 value;
} cis_cfg_imx477_t;

static const cis_cfg_imx477_t imx477_4056x3040_raw12_25fps[] = {
    {0x0100, 0x00},
    {0x0136, 0x18},
    {0x0137, 0x00},
    {0x0808, 0x02},
    {0xE07A, 0x01},
    {0xE000, 0x00},
    {0x4AE9, 0x18},
    {0x4AEA, 0x08},
    {0xF61C, 0x04},
    {0xF61E, 0x04},
    {0x4AE9, 0x21},
    {0x4AEA, 0x80},
    {0x38A8, 0x1F},
    {0x38A9, 0xFF},
    {0x38AA, 0x1F},
    {0x38AB, 0xFF},
    {0x420B, 0x01},
    {0x55D4, 0x00},
    {0x55D5, 0x00},
    {0x55D6, 0x07},
    {0x55D7, 0xFF},
    {0x55E8, 0x07},
    {0x55E9, 0xFF},
    {0x55EA, 0x00},
    {0x55EB, 0x00},
    {0x574C, 0x07},
    {0x574D, 0xFF},
    {0x574E, 0x00},
    {0x574F, 0x00},
    {0x5754, 0x00},
    {0x5755, 0x00},
    {0x5756, 0x07},
    {0x5757, 0xFF},
    {0x5973, 0x04},
    {0x5974, 0x01},
    {0x5D13, 0xC3},
    {0x5D14, 0x58},
    {0x5D15, 0xA3},
    {0x5D16, 0x1D},
    {0x5D17, 0x65},
    {0x5D18, 0x8C},
    {0x5D1A, 0x06},
    {0x5D1B, 0xA9},
    {0x5D1C, 0x45},
    {0x5D1D, 0x3A},
    {0x5D1E, 0xAB},
    {0x5D1F, 0x15},
    {0x5D21, 0x0E},
    {0x5D22, 0x52},
    {0x5D23, 0xAA},
    {0x5D24, 0x7D},
    {0x5D25, 0x57},
    {0x5D26, 0xA8},
    {0x5D37, 0x5A},
    {0x5D38, 0x5A},
    {0x5D77, 0x7F},
    {0x7B7C, 0x00},
    {0x7B7D, 0x00},
    {0x8D1F, 0x00},
    {0x8D27, 0x00},
    {0x9004, 0x03},
    {0x9200, 0x50},
    {0x9201, 0x6C},
    {0x9202, 0x71},
    {0x9203, 0x00},
    {0x9204, 0x71},
    {0x9205, 0x01},
    {0x9371, 0x6A},
    {0x9373, 0x6A},
    {0x9375, 0x64},
    {0x990C, 0x00},
    {0x990D, 0x08},
    {0x9956, 0x8C},
    {0x9957, 0x64},
    {0x9958, 0x50},
    {0x9A48, 0x06},
    {0x9A49, 0x06},
    {0x9A4A, 0x06},
    {0x9A4B, 0x06},
    {0x9A4C, 0x06},
    {0x9A4D, 0x06},
    {0xA001, 0x0A},
    {0xA003, 0x0A},
    {0xA005, 0x0A},
    {0xA006, 0x01},
    {0xA007, 0xC0},
    {0xA009, 0xC0},
    {0x5078, 0x01},
    {0x0112, 0x0C},
    {0x0113, 0x0C},
    {0x0114, 0x01},
    {0x0342, 0x2A},
    {0x0343, 0x30},
    {0x0340, 0x0C},
    {0x0341, 0x1C},
    {0x0344, 0x00},
    {0x0345, 0x00},
    {0x0346, 0x00},
    {0x0347, 0x00},
    {0x0348, 0x0F},
    {0x0349, 0xD7},
    {0x034A, 0x0B},
    {0x034B, 0xDF},
    {0x00E3, 0x00},
    {0x00E4, 0x00},
    {0x00FC, 0x0A},
    {0x00FD, 0x0A},
    {0x00FE, 0x0A},
    {0x00FF, 0x0A},
    {0xE013, 0x00},
    {0x0220, 0x00},
    {0x0221, 0x11},
    {0x0381, 0x01},
    {0x0383, 0x01},
    {0x0385, 0x01},
    {0x0387, 0x01},
    {0x0900, 0x00},
    {0x0901, 0x11},
    {0x0902, 0x02},
    {0x3140, 0x02},
    {0x3C00, 0x00},
    {0x3C01, 0x03},
    {0x3C02, 0xA2},
    {0x3F0D, 0x01},
    {0x5748, 0x07},
    {0x5749, 0xFF},
    {0x574A, 0x00},
    {0x574B, 0x00},
    {0x7B75, 0x0A},
    {0x7B76, 0x0C},
    {0x7B77, 0x07},
    {0x7B78, 0x06},
    {0x7B79, 0x3C},
    {0x7B53, 0x01},
    {0x9369, 0x5A},
    {0x936B, 0x55},
    {0x936D, 0x28},
    {0x9304, 0x03},
    {0x9305, 0x00},
    {0x9E9A, 0x2F},
    {0x9E9B, 0x2F},
    {0x9E9C, 0x2F},
    {0x9E9D, 0x00},
    {0x9E9E, 0x00},
    {0x9E9F, 0x00},
    {0xA2A9, 0x60},
    {0xA2B7, 0x00},
    {0x0401, 0x00},
    {0x0404, 0x00},
    {0x0405, 0x10},
    {0x0408, 0x00},
    {0x0409, 0x00},
    {0x040A, 0x00},
    {0x040B, 0x00},
    {0x040C, 0x0F},
    {0x040D, 0xD8},
    {0x040E, 0x0B},
    {0x040F, 0xE0},
    {0x034C, 0x0F},
    {0x034D, 0xD8},
    {0x034E, 0x0B},
    {0x034F, 0xE0},
    {0x0301, 0x05},
    {0x0303, 0x02},
    {0x0305, 0x02},
    {0x0306, 0x00},
    {0x0307, 0xAF},
    {0x0309, 0x0C},
    {0x030B, 0x01},
    {0x030D, 0x02},
    {0x030E, 0x01},
    {0x030F, 0x5E},
    {0x0310, 0x00},
    {0x0820, 0x10},
    {0x0821, 0x68},
    {0x0822, 0x00},
    {0x0823, 0x00},
    {0x080A, 0x00},
    {0x080B, 0xC7},
    {0x080C, 0x00},
    {0x080D, 0x87},
    {0x080E, 0x00},
    {0x080F, 0xDF},
    {0x0810, 0x00},
    {0x0811, 0x97},
    {0x0812, 0x00},
    {0x0813, 0x8F},
    {0x0814, 0x00},
    {0x0815, 0x7F},
    {0x0816, 0x02},
    {0x0817, 0x27},
    {0x0818, 0x00},
    {0x0819, 0x6F},
    {0xE04C, 0x00},
    {0xE04D, 0xDF},
    {0xE04E, 0x00},
    {0xE04F, 0x1F},
    {0x3E20, 0x01},
    {0x3E37, 0x00},
    {0x3F50, 0x00},
    {0x3F56, 0x01},
    {0x3F57, 0x35},
    {0x0100, 0x01},
};

static const cis_cfg_imx477_t imx477_4k_raw10_45fps[] = {
    {0x0100, 0x00},
    {0x0136, 0x18},
    {0x0137, 0x00},
    {0x0808, 0x02},
    {0xE07A, 0x01},
    {0xE000, 0x00},
    {0x4AE9, 0x18},
    {0x4AEA, 0x08},
    {0xF61C, 0x04},
    {0xF61E, 0x04},
    {0x4AE9, 0x21},
    {0x4AEA, 0x80},
    {0x38A8, 0x1F},
    {0x38A9, 0xFF},
    {0x38AA, 0x1F},
    {0x38AB, 0xFF},
    {0x420B, 0x01},
    {0x55D4, 0x00},
    {0x55D5, 0x00},
    {0x55D6, 0x07},
    {0x55D7, 0xFF},
    {0x55E8, 0x07},
    {0x55E9, 0xFF},
    {0x55EA, 0x00},
    {0x55EB, 0x00},
    {0x574C, 0x07},
    {0x574D, 0xFF},
    {0x574E, 0x00},
    {0x574F, 0x00},
    {0x5754, 0x00},
    {0x5755, 0x00},
    {0x5756, 0x07},
    {0x5757, 0xFF},
    {0x5973, 0x04},
    {0x5974, 0x01},
    {0x5D13, 0xC3},
    {0x5D14, 0x58},
    {0x5D15, 0xA3},
    {0x5D16, 0x1D},
    {0x5D17, 0x65},
    {0x5D18, 0x8C},
    {0x5D1A, 0x06},
    {0x5D1B, 0xA9},
    {0x5D1C, 0x45},
    {0x5D1D, 0x3A},
    {0x5D1E, 0xAB},
    {0x5D1F, 0x15},
    {0x5D21, 0x0E},
    {0x5D22, 0x52},
    {0x5D23, 0xAA},
    {0x5D24, 0x7D},
    {0x5D25, 0x57},
    {0x5D26, 0xA8},
    {0x5D37, 0x5A},
    {0x5D38, 0x5A},
    {0x5D77, 0x7F},
    {0x7B7C, 0x00},
    {0x7B7D, 0x00},
    {0x8D1F, 0x00},
    {0x8D27, 0x00},
    {0x9004, 0x03},
    {0x9200, 0x50},
    {0x9201, 0x6C},
    {0x9202, 0x71},
    {0x9203, 0x00},
    {0x9204, 0x71},
    {0x9205, 0x01},
    {0x9371, 0x6A},
    {0x9373, 0x6A},
    {0x9375, 0x64},
    {0x990C, 0x00},
    {0x990D, 0x08},
    {0x9956, 0x8C},
    {0x9957, 0x64},
    {0x9958, 0x50},
    {0x9A48, 0x06},
    {0x9A49, 0x06},
    {0x9A4A, 0x06},
    {0x9A4B, 0x06},
    {0x9A4C, 0x06},
    {0x9A4D, 0x06},
    {0xA001, 0x0A},
    {0xA003, 0x0A},
    {0xA005, 0x0A},
    {0xA006, 0x01},
    {0xA007, 0xC0},
    {0xA009, 0xC0},
    {0x5078, 0x01},
    {0x0112, 0x0A},
    {0x0113, 0x0A},
    {0x0114, 0x01},
    {0x0342, 0x1D},
    {0x0343, 0x00},
    {0x0340, 0x0C},
    {0x0341, 0x1C},
    {0x0344, 0x00},
    {0x0345, 0x00},
    {0x0346, 0x00},
    {0x0347, 0x00},
    {0x0348, 0x0F},
    {0x0349, 0x00},
    {0x034A, 0x08},
    {0x034B, 0x70},
    {0x00E3, 0x00},
    {0x00E4, 0x00},
    {0x00FC, 0x0A},
    {0x00FD, 0x0A},
    {0x00FE, 0x0A},
    {0x00FF, 0x0A},
    {0xE013, 0x00},
    {0x0220, 0x00},
    {0x0221, 0x11},
    {0x0381, 0x01},
    {0x0383, 0x01},
    {0x0385, 0x01},
    {0x0387, 0x01},
    {0x0900, 0x00},
    {0x0901, 0x11},
    {0x0902, 0x02},
    {0x3140, 0x02},
    {0x3C00, 0x00},
    {0x3C01, 0x03},
    {0x3C02, 0xA2},
    {0x3F0D, 0x01},
    {0x5748, 0x07},
    {0x5749, 0xFF},
    {0x574A, 0x00},
    {0x574B, 0x00},
    {0x7B75, 0x0A},
    {0x7B76, 0x0C},
    {0x7B77, 0x07},
    {0x7B78, 0x06},
    {0x7B79, 0x3C},
    {0x7B53, 0x01},
    {0x9369, 0x5A},
    {0x936B, 0x55},
    {0x936D, 0x28},
    {0x9304, 0x03},
    {0x9305, 0x00},
    {0x9E9A, 0x2F},
    {0x9E9B, 0x2F},
    {0x9E9C, 0x2F},
    {0x9E9D, 0x00},
    {0x9E9E, 0x00},
    {0x9E9F, 0x00},
    {0xA2A9, 0x60},
    {0xA2B7, 0x00},
    {0x0401, 0x00},
    {0x0404, 0x00},
    {0x0405, 0x10},
    {0x0408, 0x00},
    {0x0409, 0x00},
    {0x040A, 0x00},
    {0x040B, 0x00},
    {0x040C, 0x0F},
    {0x040D, 0x00},
    {0x040E, 0x08},
    {0x040F, 0x70},
    {0x034C, 0x0F},
    {0x034D, 0x00},
    {0x034E, 0x08},
    {0x034F, 0x70},
    {0x0301, 0x05},
    {0x0303, 0x02},
    {0x0305, 0x02},
    {0x0306, 0x00},
    {0x0307, 0xAF},
    {0x0309, 0x0C},
    {0x030B, 0x01},
    {0x030D, 0x02},
    {0x030E, 0x01},
    {0x030F, 0x5E},
    {0x0310, 0x00},
    {0x0820, 0x10},
    {0x0821, 0x68},
    {0x0822, 0x00},
    {0x0823, 0x00},
    {0x080A, 0x00},
    {0x080B, 0xC7},
    {0x080C, 0x00},
    {0x080D, 0x87},
    {0x080E, 0x00},
    {0x080F, 0xDF},
    {0x0810, 0x00},
    {0x0811, 0x97},
    {0x0812, 0x00},
    {0x0813, 0x8F},
    {0x0814, 0x00},
    {0x0815, 0x7F},
    {0x0816, 0x02},
    {0x0817, 0x27},
    {0x0818, 0x00},
    {0x0819, 0x6F},
    {0xE04C, 0x00},
    {0xE04D, 0xDF},
    {0xE04E, 0x00},
    {0xE04F, 0x1F},
    {0x3E20, 0x01},
    {0x3E37, 0x00},
    {0x3F50, 0x00},
    {0x3F56, 0x01},
    {0x3F57, 0x35},
    {0x0100, 0x01},
};

/* 3264*2448 20fps 2Lane ok */
static const cis_cfg_imx477_t imx477_4056x3040_dol2_raw10_15fps[] = {
    {0x0100, 0x00},
    {0x0136, 0x18},
    {0x0137, 0x00},
    {0x0808, 0x02},
    {0xE07A, 0x01},
    {0xE000, 0x00},
    {0x4AE9, 0x18},
    {0x4AEA, 0x08},
    {0xF61C, 0x04},
    {0xF61E, 0x04},
    {0x4AE9, 0x21},
    {0x4AEA, 0x80},
    {0x38A8, 0x1F},
    {0x38A9, 0xFF},
    {0x38AA, 0x1F},
    {0x38AB, 0xFF},
    {0x420B, 0x01},
    {0x55D4, 0x00},
    {0x55D5, 0x00},
    {0x55D6, 0x07},
    {0x55D7, 0xFF},
    {0x55E8, 0x07},
    {0x55E9, 0xFF},
    {0x55EA, 0x00},
    {0x55EB, 0x00},
    {0x574C, 0x07},
    {0x574D, 0xFF},
    {0x574E, 0x00},
    {0x574F, 0x00},
    {0x5754, 0x00},
    {0x5755, 0x00},
    {0x5756, 0x07},
    {0x5757, 0xFF},
    {0x5973, 0x04},
    {0x5974, 0x01},
    {0x5D13, 0xC3},
    {0x5D14, 0x58},
    {0x5D15, 0xA3},
    {0x5D16, 0x1D},
    {0x5D17, 0x65},
    {0x5D18, 0x8C},
    {0x5D1A, 0x06},
    {0x5D1B, 0xA9},
    {0x5D1C, 0x45},
    {0x5D1D, 0x3A},
    {0x5D1E, 0xAB},
    {0x5D1F, 0x15},
    {0x5D21, 0x0E},
    {0x5D22, 0x52},
    {0x5D23, 0xAA},
    {0x5D24, 0x7D},
    {0x5D25, 0x57},
    {0x5D26, 0xA8},
    {0x5D37, 0x5A},
    {0x5D38, 0x5A},
    {0x5D77, 0x7F},
    {0x7B7C, 0x00},
    {0x7B7D, 0x00},
    {0x8D1F, 0x00},
    {0x8D27, 0x00},
    {0x9004, 0x03},
    {0x9200, 0x50},
    {0x9201, 0x6C},
    {0x9202, 0x71},
    {0x9203, 0x00},
    {0x9204, 0x71},
    {0x9205, 0x01},
    {0x9371, 0x6A},
    {0x9373, 0x6A},
    {0x9375, 0x64},
    {0x990C, 0x00},
    {0x990D, 0x08},
    {0x9956, 0x8C},
    {0x9957, 0x64},
    {0x9958, 0x50},
    {0x9A48, 0x06},
    {0x9A49, 0x06},
    {0x9A4A, 0x06},
    {0x9A4B, 0x06},
    {0x9A4C, 0x06},
    {0x9A4D, 0x06},
    {0xA001, 0x0A},
    {0xA003, 0x0A},
    {0xA005, 0x0A},
    {0xA006, 0x01},
    {0xA007, 0xC0},
    {0xA009, 0xC0},
    {0x5078, 0x01},
    {0x0112, 0x0A},
    {0x0113, 0x0A},
    {0x0114, 0x01},
    {0x0342, 0x21},
    {0x0343, 0x34},
    {0x0340, 0x0C},
    {0x0341, 0x1C},
    {0x0344, 0x00},
    {0x0345, 0x00},
    {0x0346, 0x00},
    {0x0347, 0x00},
    {0x0348, 0x0F},
    {0x0349, 0xD7},
    {0x034A, 0x0B},
    {0x034B, 0xDF},
    {0x00E3, 0x01},
    {0x00E4, 0x01},
    {0x00FC, 0x0A},
    {0x00FD, 0x0A},
    {0x00FE, 0x0A},
    {0x00FF, 0x0A},
    {0xE013, 0x01},
    {0x0220, 0x00},
    {0x0221, 0x11},
    {0x0381, 0x01},
    {0x0383, 0x01},
    {0x0385, 0x01},
    {0x0387, 0x01},
    {0x0900, 0x00},
    {0x0901, 0x11},
    {0x0902, 0x02},
    {0x3140, 0x02},
    {0x3C00, 0x00},
    {0x3C01, 0x03},
    {0x3C02, 0xDC},
    {0x3F0D, 0x00},
    {0x5748, 0x07},
    {0x5749, 0xFF},
    {0x574A, 0x00},
    {0x574B, 0x00},
    {0x7B75, 0x0E},
    {0x7B76, 0x09},
    {0x7B77, 0x0C},
    {0x7B78, 0x06},
    {0x7B79, 0x3B},
    {0x7B53, 0x01},
    {0x9369, 0x5A},
    {0x936B, 0x55},
    {0x936D, 0x28},
    {0x9304, 0x03},
    {0x9305, 0x00},
    {0x9E9A, 0x2F},
    {0x9E9B, 0x2F},
    {0x9E9C, 0x2F},
    {0x9E9D, 0x00},
    {0x9E9E, 0x00},
    {0x9E9F, 0x00},
    {0xA2A9, 0x60},
    {0xA2B7, 0x00},
    {0x0401, 0x00},
    {0x0404, 0x00},
    {0x0405, 0x10},
    {0x0408, 0x00},
    {0x0409, 0x00},
    {0x040A, 0x00},
    {0x040B, 0x00},
    {0x040C, 0x0F},
    {0x040D, 0xD8},
    {0x040E, 0x0B},
    {0x040F, 0xE0},
    {0x034C, 0x0F},
    {0x034D, 0xD8},
    {0x034E, 0x0B},
    {0x034F, 0xE0},
    {0x0301, 0x05},
    {0x0303, 0x02},
    {0x0305, 0x02},
    {0x0306, 0x00},
    {0x0307, 0xAF},
    {0x0309, 0x0A},
    {0x030B, 0x01},
    {0x030D, 0x02},
    {0x030E, 0x01},
    {0x030F, 0x5E},
    {0x0310, 0x00},
    {0x0820, 0x10},
    {0x0821, 0x68},
    {0x0822, 0x00},
    {0x0823, 0x00},
    {0x080A, 0x00},
    {0x080B, 0xC7},
    {0x080C, 0x00},
    {0x080D, 0x87},
    {0x080E, 0x00},
    {0x080F, 0xDF},
    {0x0810, 0x00},
    {0x0811, 0x97},
    {0x0812, 0x00},
    {0x0813, 0x8F},
    {0x0814, 0x00},
    {0x0815, 0x7F},
    {0x0816, 0x02},
    {0x0817, 0x27},
    {0x0818, 0x00},
    {0x0819, 0x6F},
    {0xE04C, 0x00},
    {0xE04D, 0xDF},
    {0xE04E, 0x00},
    {0xE04F, 0x1F},
    {0x3E20, 0x01},
    {0x3E37, 0x00},
    {0x3F50, 0x00},
    {0x3F56, 0x00},
    {0x3F57, 0xF3},
    {0x0100, 0x01},
};

static const cis_cfg_imx477_t imx477_1920x1080_dol2_raw10[] = {
    {0x0100, 0x00},
    {0x0136, 0x18},
    {0x0137, 0x00},
    {0x0808, 0x02},
    {0xE07A, 0x01},
    {0xE000, 0x00},
    {0x4AE9, 0x18},
    {0x4AEA, 0x08},
    {0xF61C, 0x04},
    {0xF61E, 0x04},
    {0x4AE9, 0x21},
    {0x4AEA, 0x80},
    {0x38A8, 0x1F},
    {0x38A9, 0xFF},
    {0x38AA, 0x1F},
    {0x38AB, 0xFF},
    {0x420B, 0x01},
    {0x55D4, 0x00},
    {0x55D5, 0x00},
    {0x55D6, 0x07},
    {0x55D7, 0xFF},
    {0x55E8, 0x07},
    {0x55E9, 0xFF},
    {0x55EA, 0x00},
    {0x55EB, 0x00},
    {0x574C, 0x07},
    {0x574D, 0xFF},
    {0x574E, 0x00},
    {0x574F, 0x00},
    {0x5754, 0x00},
    {0x5755, 0x00},
    {0x5756, 0x07},
    {0x5757, 0xFF},
    {0x5973, 0x04},
    {0x5974, 0x01},
    {0x5D13, 0xC3},
    {0x5D14, 0x58},
    {0x5D15, 0xA3},
    {0x5D16, 0x1D},
    {0x5D17, 0x65},
    {0x5D18, 0x8C},
    {0x5D1A, 0x06},
    {0x5D1B, 0xA9},
    {0x5D1C, 0x45},
    {0x5D1D, 0x3A},
    {0x5D1E, 0xAB},
    {0x5D1F, 0x15},
    {0x5D21, 0x0E},
    {0x5D22, 0x52},
    {0x5D23, 0xAA},
    {0x5D24, 0x7D},
    {0x5D25, 0x57},
    {0x5D26, 0xA8},
    {0x5D37, 0x5A},
    {0x5D38, 0x5A},
    {0x5D77, 0x7F},
    {0x7B7C, 0x00},
    {0x7B7D, 0x00},
    {0x8D1F, 0x00},
    {0x8D27, 0x00},
    {0x9004, 0x03},
    {0x9200, 0x50},
    {0x9201, 0x6C},
    {0x9202, 0x71},
    {0x9203, 0x00},
    {0x9204, 0x71},
    {0x9205, 0x01},
    {0x9371, 0x6A},
    {0x9373, 0x6A},
    {0x9375, 0x64},
    {0x990C, 0x00},
    {0x990D, 0x08},
    {0x9956, 0x8C},
    {0x9957, 0x64},
    {0x9958, 0x50},
    {0x9A48, 0x06},
    {0x9A49, 0x06},
    {0x9A4A, 0x06},
    {0x9A4B, 0x06},
    {0x9A4C, 0x06},
    {0x9A4D, 0x06},
    {0xA001, 0x0A},
    {0xA003, 0x0A},
    {0xA005, 0x0A},
    {0xA006, 0x01},
    {0xA007, 0xC0},
    {0xA009, 0xC0},
    {0x5078, 0x01},
    {0x0112, 0x0A},
    {0x0113, 0x0A},
    {0x0114, 0x01},
    {0x0342, 0x21},
    {0x0343, 0x34},
    {0x0340, 0x0C},
    {0x0341, 0x1C},
    {0x0344, 0x00},
    {0x0345, 0x00},
    {0x0346, 0x00},
    {0x0347, 0x00},
    {0x0348, 0x0F},
    {0x0349, 0xD7},
    {0x034A, 0x0B},
    {0x034B, 0xDF},
    {0x00E3, 0x01},
    {0x00E4, 0x01},
    {0x00FC, 0x0A},
    {0x00FD, 0x0A},
    {0x00FE, 0x0A},
    {0x00FF, 0x0A},
    {0xE013, 0x01},
    {0x0220, 0x00},
    {0x0221, 0x11},
    {0x0381, 0x01},
    {0x0383, 0x01},
    {0x0385, 0x01},
    {0x0387, 0x01},
    {0x0900, 0x00},
    {0x0901, 0x11},
    {0x0902, 0x02},
    {0x3140, 0x02},
    {0x3C00, 0x00},
    {0x3C01, 0x03},
    {0x3C02, 0xDC},
    {0x3F0D, 0x00},
    {0x5748, 0x07},
    {0x5749, 0xFF},
    {0x574A, 0x00},
    {0x574B, 0x00},
    {0x7B75, 0x0E},
    {0x7B76, 0x09},
    {0x7B77, 0x0C},
    {0x7B78, 0x06},
    {0x7B79, 0x3B},
    {0x7B53, 0x01},
    {0x9369, 0x5A},
    {0x936B, 0x55},
    {0x936D, 0x28},
    {0x9304, 0x03},
    {0x9305, 0x00},
    {0x9E9A, 0x2F},
    {0x9E9B, 0x2F},
    {0x9E9C, 0x2F},
    {0x9E9D, 0x00},
    {0x9E9E, 0x00},
    {0x9E9F, 0x00},
    {0xA2A9, 0x60},
    {0xA2B7, 0x00},
    {0x0401, 0x00},
    {0x0404, 0x00},
    {0x0405, 0x10},
    {0x0408, 0x00},
    {0x0409, 0x00},
    {0x040A, 0x00},
    {0x040B, 0x00},
    {0x040C, 0x07},
    {0x040D, 0x80},
    {0x040E, 0x04},
    {0x040F, 0x38},
    {0x034C, 0x07},
    {0x034D, 0x80},
    {0x034E, 0x04},
    {0x034F, 0x38},
    {0x0301, 0x05},
    {0x0303, 0x02},
    {0x0305, 0x02},
    {0x0306, 0x00},
    {0x0307, 0xAF},
    {0x0309, 0x0A},
    {0x030B, 0x01},
    {0x030D, 0x02},
    {0x030E, 0x01},
    {0x030F, 0x5E},
    {0x0310, 0x00},
    {0x0820, 0x10},
    {0x0821, 0x68},
    {0x0822, 0x00},
    {0x0823, 0x00},
    {0x080A, 0x00},
    {0x080B, 0xC7},
    {0x080C, 0x00},
    {0x080D, 0x87},
    {0x080E, 0x00},
    {0x080F, 0xDF},
    {0x0810, 0x00},
    {0x0811, 0x97},
    {0x0812, 0x00},
    {0x0813, 0x8F},
    {0x0814, 0x00},
    {0x0815, 0x7F},
    {0x0816, 0x02},
    {0x0817, 0x27},
    {0x0818, 0x00},
    {0x0819, 0x6F},
    {0xE04C, 0x00},
    {0xE04D, 0xDF},
    {0xE04E, 0x00},
    {0xE04F, 0x1F},
    {0x3E20, 0x01},
    {0x3E37, 0x00},
    {0x3F50, 0x00},
    {0x3F56, 0x00},
    {0x3F57, 0xF3},
    {0x0100, 0x01},
};

static const cis_cfg_imx477_t imx477_1920x1080_raw12[] = {
    {0x0100, 0x00},
    {0x0136, 0x18},
    {0x0137, 0x00},
    {0x0808, 0x02},
    {0xE07A, 0x01},
    {0xE000, 0x00},
    {0x4AE9, 0x18},
    {0x4AEA, 0x08},
    {0xF61C, 0x04},
    {0xF61E, 0x04},
    {0x4AE9, 0x21},
    {0x4AEA, 0x80},
    {0x38A8, 0x1F},
    {0x38A9, 0xFF},
    {0x38AA, 0x1F},
    {0x38AB, 0xFF},
    {0x420B, 0x01},
    {0x55D4, 0x00},
    {0x55D5, 0x00},
    {0x55D6, 0x07},
    {0x55D7, 0xFF},
    {0x55E8, 0x07},
    {0x55E9, 0xFF},
    {0x55EA, 0x00},
    {0x55EB, 0x00},
    {0x574C, 0x07},
    {0x574D, 0xFF},
    {0x574E, 0x00},
    {0x574F, 0x00},
    {0x5754, 0x00},
    {0x5755, 0x00},
    {0x5756, 0x07},
    {0x5757, 0xFF},
    {0x5973, 0x04},
    {0x5974, 0x01},
    {0x5D13, 0xC3},
    {0x5D14, 0x58},
    {0x5D15, 0xA3},
    {0x5D16, 0x1D},
    {0x5D17, 0x65},
    {0x5D18, 0x8C},
    {0x5D1A, 0x06},
    {0x5D1B, 0xA9},
    {0x5D1C, 0x45},
    {0x5D1D, 0x3A},
    {0x5D1E, 0xAB},
    {0x5D1F, 0x15},
    {0x5D21, 0x0E},
    {0x5D22, 0x52},
    {0x5D23, 0xAA},
    {0x5D24, 0x7D},
    {0x5D25, 0x57},
    {0x5D26, 0xA8},
    {0x5D37, 0x5A},
    {0x5D38, 0x5A},
    {0x5D77, 0x7F},
    {0x7B7C, 0x00},
    {0x7B7D, 0x00},
    {0x8D1F, 0x00},
    {0x8D27, 0x00},
    {0x9004, 0x03},
    {0x9200, 0x50},
    {0x9201, 0x6C},
    {0x9202, 0x71},
    {0x9203, 0x00},
    {0x9204, 0x71},
    {0x9205, 0x01},
    {0x9371, 0x6A},
    {0x9373, 0x6A},
    {0x9375, 0x64},
    {0x990C, 0x00},
    {0x990D, 0x08},
    {0x9956, 0x8C},
    {0x9957, 0x64},
    {0x9958, 0x50},
    {0x9A48, 0x06},
    {0x9A49, 0x06},
    {0x9A4A, 0x06},
    {0x9A4B, 0x06},
    {0x9A4C, 0x06},
    {0x9A4D, 0x06},
    {0xA001, 0x0A},
    {0xA003, 0x0A},
    {0xA005, 0x0A},
    {0xA006, 0x01},
    {0xA007, 0xC0},
    {0xA009, 0xC0},
    {0x5078, 0x01},
    {0x0112, 0x0C},
    {0x0113, 0x0C},
    {0x0114, 0x01},
    {0x0342, 0x2A}, // LINE_LENGTH_PCK[15:8]
    {0x0343, 0x30}, // LINE_LENGTH_PCK[7:0]
    {0x0340, 0x0C},
    {0x0341, 0x1C},
    {0x0344, 0x00},
    {0x0345, 0x00},
    {0x0346, 0x00},
    {0x0347, 0x00},
    {0x0348, 0x0F},
    {0x0349, 0xD7},
    {0x034A, 0x0B},
    {0x034B, 0xDF},
    {0x00E3, 0x00},
    {0x00E4, 0x00},
    {0x00FC, 0x0A},
    {0x00FD, 0x0A},
    {0x00FE, 0x0A},
    {0x00FF, 0x0A},
    {0xE013, 0x00},
    {0x0220, 0x00},
    {0x0221, 0x11},
    {0x0381, 0x01},
    {0x0383, 0x01},
    {0x0385, 0x01},
    {0x0387, 0x01},
    {0x0900, 0x00},
    {0x0901, 0x11},
    {0x0902, 0x02},
    {0x3140, 0x02},
    {0x3C00, 0x00},
    {0x3C01, 0x03},
    {0x3C02, 0xA2},
    {0x3F0D, 0x01},
    {0x5748, 0x07},
    {0x5749, 0xFF},
    {0x574A, 0x00},
    {0x574B, 0x00},
    {0x7B75, 0x0A},
    {0x7B76, 0x0C},
    {0x7B77, 0x07},
    {0x7B78, 0x06},
    {0x7B79, 0x3C},
    {0x7B53, 0x01},
    {0x9369, 0x5A},
    {0x936B, 0x55},
    {0x936D, 0x28},
    {0x9304, 0x03},
    {0x9305, 0x00},
    {0x9E9A, 0x2F},
    {0x9E9B, 0x2F},
    {0x9E9C, 0x2F},
    {0x9E9D, 0x00},
    {0x9E9E, 0x00},
    {0x9E9F, 0x00},
    {0xA2A9, 0x60},
    {0xA2B7, 0x00},
    {0x0401, 0x00},
    {0x0404, 0x00},
    {0x0405, 0x10},
    {0x0408, 0x00},
    {0x0409, 0x00},
    {0x040A, 0x00},
    {0x040B, 0x00},
    {0x040C, 0x07},
    {0x040D, 0x7F},
    {0x040E, 0x04},
    {0x040F, 0x38},
    {0x034C, 0x07},
    {0x034D, 0x80},
    {0x034E, 0x04},
    {0x034F, 0x38},
    {0x0301, 0x05},
    {0x0303, 0x02},
    {0x0305, 0x02},
    {0x0306, 0x00},
    {0x0307, 0xAF},
    {0x0309, 0x0C},
    {0x030B, 0x01},
    {0x030D, 0x02},
    {0x030E, 0x01},
    {0x030F, 0x5E},
    {0x0310, 0x00},
    {0x0820, 0x10},
    {0x0821, 0x68},
    {0x0822, 0x00},
    {0x0823, 0x00},
    {0x080A, 0x00},
    {0x080B, 0xC7},
    {0x080C, 0x00},
    {0x080D, 0x87},
    {0x080E, 0x00},
    {0x080F, 0xDF},
    {0x0810, 0x00},
    {0x0811, 0x97},
    {0x0812, 0x00},
    {0x0813, 0x8F},
    {0x0814, 0x00},
    {0x0815, 0x7F},
    {0x0816, 0x02},
    {0x0817, 0x27},
    {0x0818, 0x00},
    {0x0819, 0x6F},
    {0xE04C, 0x00},
    {0xE04D, 0xDF},
    {0xE04E, 0x00},
    {0xE04F, 0x1F},
    {0x3E20, 0x01},
    {0x3E37, 0x00},
    {0x3F50, 0x00},
    {0x3F56, 0x01},
    {0x3F57, 0x35},
    {0x0100, 0x01},
};
#endif